<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.tss.util.*"%>
<%@page import="com.jedi.*"%>
<%@page import="java.text.*"%>
<%@include file="../global_var.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	String enddate = new SimpleDateFormat("yyyy-MM-dd").format(Calendar
			.getInstance().getTime());
	Calendar calen = Calendar.getInstance();
	calen.setTime(TSSDate.parseDate(enddate));
	calen.add(Calendar.MONTH, -1);
	String begindate = new SimpleDateFormat("yyyy-MM-dd").format(calen
			.getTime());
User just_user = (User)session.getAttribute("LoginUser");
	String power_enable_id = "10005";//统计

if (!just_user.hasPower(power_enable_id))  {
	out.println(strNoPowerInfo); 
	return;
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'person_sturation_stat.jsp' starting page</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link href="style/main.css" rel="stylesheet" type="text/css">
 <script language="javascript" src="js/common.js"></script>

</head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td >
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="100" align="center" valign="top" style="padding-top:20px;padding-bottom:10px;">
            <form name="operatorForm" method="post" action="incontract_mgt/incon_stat_list.jsp">
            <table width="80%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
              <tr> 
                <td width="30%" height="24" align="right" bgcolor="#858585"><font color="#FFFFFF">区域：</font></td>
                <td bgcolor="#EDEDF0">
                 <select name="area_id"  style="width:100px" >
                 <option value="">==全部==</option>
                    <%for(int i=0;i<area_item_info.length;i++){%>
                    <option value="<%=area_item_info[i]%>"><%=area_item_info[i]%></option>
                    <%}%>
                  </select>   
                </td>
              </tr>
             <tr>
                 <td height="24" align="right" bgcolor="#858585"><font color="#FFFFFF">统计日期：</font></td>
                <td bgcolor="#EDEDF0" class="black">
                    从 <span id="htmlBeginTime">&nbsp;</span> &nbsp; 至 &nbsp; <span id="htmlEndTime" >&nbsp;</span>
                </td>
              </tr>
              
              <tr> 
                <td height="24" align="right" bgcolor="#EDEDF0">&nbsp;</td>
                <td bgcolor="#EDEDF0"> 
                  <input type="submit" name="submit" value="统计" class="inputButton"> 
                  <input type="reset" name="reset" value="重写" class="inputButton"> 
                  <input type="hidden" name="cmd" value=""> 
                </td>
              </tr>

            </table>
 	  </form>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<script language="javascript">
	htmlBeginTime.innerHTML = showCalenderInput("begin_date","operatorForm","<%=begindate%>",1);
	htmlEndTime.innerHTML = showCalenderInput("end_date","operatorForm","<%=enddate%>",1);
</script>
</body>
</html>